package com.swing;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class UiJFrame extends JFrame {
	
	private static final long serialVersionUID = -6840160996877372619L;
	
	JFrame jFrame = this;
	
	public void ok(String msg) {
		JOptionPane.showMessageDialog(jFrame, msg, "提示", JOptionPane. INFORMATION_MESSAGE);
	}
	
	public void error(String msg) {
		JOptionPane.showMessageDialog(jFrame, msg, "提示", JOptionPane. ERROR_MESSAGE);
	}
	
	public void warning(String msg) {
		JOptionPane.showMessageDialog(jFrame, msg, "提示", JOptionPane. WARNING_MESSAGE);
	}
	
	public void loading(String msg) {
		JOptionPane.showMessageDialog(jFrame, msg, "加载中", JOptionPane. PLAIN_MESSAGE);
	}
}
